package com.health.healthapplet.service.impl;

import com.health.healthapplet.entity.WxUser;
import com.health.healthapplet.mapper.WxMapper;
import com.health.healthapplet.service.WxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxServiceImpl implements WxService {
    @Autowired
    WxMapper wxMapper;
    @Override
    public WxUser findnameByopenId(String openid) {
        WxUser wxuser = wxMapper.findnameByopenId(openid);
        return wxuser;
    }

    @Override
    public int addWxuser(String openid, String name, String sex, String city, String urlimg) {
        int count = wxMapper.addWxuser(openid,name,sex,city,urlimg);
        return count;
    }
}
